package com.unswift.window.factory;

import javax.swing.JTabbedPane;
import javax.swing.border.Border;

import com.unswift.utils.ObjectUtils;
import com.unswift.window.extend.TabbedUI;

public final class TabFactory {
	
	public static JTabbedPane createBaseTab(){
		return new JTabbedPane();
	}

	public static JTabbedPane createTab(Border border){
		JTabbedPane tabs=new JTabbedPane();
		tabs.setUI(new TabbedUI());
		if(ObjectUtils.isNotEmpty(border)){
			tabs.setBorder(border);
		}
		return tabs;
	}
	
}
